package com.why.serviceorder.client;


import com.why.commonresults.CourseOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * @program: guli_parent
 * @description:
 * @author: @why
 * @create: 2021-02-23 14:11
 **/
@FeignClient("service-edu")
public interface EduClilent {
    /**
     * 远程调用查询课程
     * @param courseId
     * @return
     */
    @GetMapping("/edu/eduservice/getCourseByCourseId/{courseId}")
    CourseOrder getCourseInfoDto(@PathVariable("courseId") String courseId);
}
